<template>
	<div class="back-home" @click="clickEvent">
        <span>{{text}}</span>
		<img src="static/image/home.png" />
        
	</div>

</template>

<script>
	export default {
		props: {
			text: {
				type: String,
				default: "返回首页"
			},
			clickEvent: {
				type: Function,
				default: () => {
					window.location.hash = "/?env=e";
                }
			}
		},
		computed: {
		},
		data() {
			return {

			}
		},
		components: {

		},
		created() {
		},
		methods: {
		},
		mounted() {

		},
		watch: {

		}
	}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
	.back-home {
		/* position: relative; */
		/* width: 18px; */
		/* height: 18px; */
        cursor: pointer;
        display: flex;
        align-items: center;
	}
    .back-home img {
        width: 16px;
        height: 16px;
    }
    .back-home span {
        font-size: 14px;
        color: #3876ae;
        margin-right: 5px;
    }
</style>